﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace EuphoricNation.Util
{
    /// <summary>
    /// Constants for EuphoricNation
    /// </summary>
    public static class Constants
    {
        /// <summary>
        /// Whether we're currently in debug mode
        /// </summary>
        public const bool DEBUG = false;

        /// <summary>
        /// Whether to use caching
        /// </summary>
        public const bool USE_CACHING = true;

        /// <summary>
        /// Username to use for linked content when in debug mode
        /// </summary>
        public const string DEBUG_USERNAME = "shanesimpkins@gmail.com";

        /// <summary>
        /// Role name for admins
        /// </summary>
        public const string ROLE_ADMIN = "admin";

        /// <summary>
        /// Role name for moderators
        /// </summary>
        public const string ROLE_MODERATOR = "moderator";

        /// <summary>
        /// Key for the shared context items array to fetch the get variables, specified by the route
        /// </summary>
        public const string KEY_SHAREDCONTEXT_GETVARS = "VARS";

        /// <summary>
        /// Default fallback contact email address
        /// </summary>
        public static readonly string DEFAULT_CONTACT_EMAIL = ConfigurationManager.AppSettings["ContactEmail"];

        /// <summary>
        /// Default from email address
        /// </summary>
        public static readonly string DEFAULT_CONTACT_EMAIL_FROM = ConfigurationManager.AppSettings["ContactFrom"];

        /// <summary>
        /// Connection string for direct access to the DB, skipping the access layer
        /// </summary>
        public static readonly string CONNECTION_STRING = ConfigurationManager.ConnectionStrings["EuphoricNationDB"].ConnectionString;

        /// <summary>
        /// Steppes Travel Domain URL
        /// </summary>
        public static readonly string DOMAIN = ConfigurationManager.AppSettings["Domain"];
    }
}